﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucMainMenu.ascx.cs"
    Inherits="TTMarketing.UserControl.Menu.ucMainMenu" %>
<div class="topmenu" id="chromemenu">
    <ul>
        <li><a rel="100000" class="active" href="Default.aspx" title="Scom - TanTinh.Net"><span>
            <b>Trang chủ</b></span> </a></li>
        <li><a rel="389" href="#" title="Sản phẩm"><span><b>Sản phẩm</b></span> </a></li>
        <li><a rel="390" href="#" title="Tin tức"><span><b>Tin tức</b></span> </a></li>
        <li><a rel="388" href="#" title="Dịch vụ "><span><b>Dịch vụ</b></span></a></li>
        <li><a rel="10" href="#" title="Hỗ trợ"><span><b>Hỗ trợ</b></span> </a></li>
        <li><a rel="9" href="#" title="Hỏi đáp" class=""><span><b>Hỏi đáp</b></span> </a>
        </li>
        <li><a rel="5" href="#" title="Liên hệ"><span><b>Liên hệ</b></span> </a></li>
    </ul>
    <div class="clear">
    </div>
</div>
<%--Menu con của trang chủ--%>
<div style="width: 150px; height: auto; overflow-x: hidden; overflow-y: hidden; visibility: hidden;
    top: -1000px; left: -1000px;" class="dropmenudiv" id="100000">
    <%--Link trang chủ có thể ko cần sub menu nhưng không được xóa thẻ div của nó--%>
    <%--    <a href="#" title="Brand Sitemap">
        <div class="text_link">
            Tất cả thương hiệu
        </div>
    </a><a href="#" title="Category Sitemap">
        <div class="text_link">
            Tất cả chủng loại SP
        </div>
    </a>--%>
</div>
<div class="bottom_div">
</div>
<div style="width: 150px; height: auto; overflow: hidden; visibility: hidden;" class="dropmenudiv"
    id="389">
    <telerik:RadListView ID="rlwProduct" runat="server" DataSourceID="obsListTypeProduct">
        <ItemTemplate>
            <a href="san-pham.aspx?id=<%# Eval("ID") %>" title='<%# Eval("Name") %>'>
                <div class="text_link">
                    <%# Eval("Name") %></div>
            </a>
        </ItemTemplate>
    </telerik:RadListView>
</div>
<div class="bottom_div">
</div>
<div style="width: 150px; height: auto; overflow: hidden; visibility: hidden;" class="dropmenudiv"
    id="388">
    <telerik:RadListView ID="rlwDichVu" runat="server" DataSourceID="odsDichVu">
        <ItemTemplate>
            <a href="dich-vu.aspx?id=<%# Eval("ID") %>" title='<%# Eval("Title") %>'>
                <div class="text_link">
                    <%# Eval("Title")%></div>
            </a>
        </ItemTemplate>
    </telerik:RadListView>
</div>
<div class="bottom_div">
</div>
<div style="width: 150px; height: auto; overflow: hidden; visibility: hidden;" class="dropmenudiv"
    id="390">

    <telerik:RadListView ID="rlwTinTuc" runat="server" DataSourceID="odsTinTuc">
        <ItemTemplate>
            <a href="tin-tuc.aspx?catid=<%# Eval("ID") %>" title='<%# Eval("Name") %>'>
                <div class="text_link">
                    <%# Eval("Name")%></div>
            </a>
        </ItemTemplate>
    </telerik:RadListView>

</div>
<div class="bottom_div">
</div>
<div style="width: 150px; height: auto; overflow-x: hidden; overflow-y: hidden; visibility: hidden;
    top: -1000px; left: -1000px;" class="dropmenudiv" id="9">
    <a href="#" title="Đang cập nhật">
        <div class="text_link">
            Đang cập nhật</div>
    </a>
</div>
<div class="bottom_div">
</div>
<div style="width: 150px; height: auto; overflow: hidden; visibility: hidden;" class="dropmenudiv"
    id="10">
    <telerik:RadListView ID="rlwHoTro" runat="server" DataSourceID="odsHotro">
        <ItemTemplate>
            <a href="ho-tro.aspx?id=<%# Eval("ID") %>" title='<%# Eval("Title") %>'>
                <div class="text_link">
                    <%# Eval("Title")%></div>
            </a>
        </ItemTemplate>
    </telerik:RadListView>
</div>
<div class="bottom_div">
</div>
<script type="text/javascript">
    cssdropdown.startchrome("chromemenu")
</script>
<asp:ObjectDataSource ID="obsListTypeProduct" runat="server" SelectMethod="TypeProduct_getAllTypeProduct"
    TypeName="TTController.clsBusiness">
    <SelectParameters>
        <asp:Parameter DefaultValue="true" Name="visible" Type="Boolean" />
        <asp:Parameter DefaultValue="true" Name="status" Type="Boolean" />
    </SelectParameters>
</asp:ObjectDataSource>
<asp:ObjectDataSource ID="odsDichVu" runat="server" SelectMethod="getByType" TypeName="TTBusiness.ClassDB.clsBSNews">
    <SelectParameters>
        <asp:Parameter DefaultValue="8" Name="typeid" Type="Int32" />
        <asp:Parameter DefaultValue="true" Name="status" Type="Boolean" />
    </SelectParameters>
</asp:ObjectDataSource>
<asp:ObjectDataSource ID="odsTinTuc" runat="server" 
    SelectMethod="getByTypeAndStatus" TypeName="TTBusiness.ClassDB.clsBSCateNews">
    <SelectParameters>
        <asp:Parameter DefaultValue="6" Name="typeid" Type="Int32" />
        <asp:Parameter DefaultValue="true" Name="status" Type="Boolean" />
    </SelectParameters>
</asp:ObjectDataSource>
<asp:ObjectDataSource ID="odsHotro" runat="server" SelectMethod="getByType" TypeName="TTBusiness.ClassDB.clsBSNews">
    <SelectParameters>
        <asp:Parameter DefaultValue="15" Name="typeid" Type="Int32" />
        <asp:Parameter DefaultValue="true" Name="status" Type="Boolean" />
    </SelectParameters>
</asp:ObjectDataSource>